import axios from '@/libs/api.request'
const baseURL = "http://192.168.1.68:18082/";

export const getMenuList = (data) => {
    return axios.request({
      baseURL: baseURL,
      url: "/user/menu",
      params: data,
      method: 'get'
    })
}

export const addMenu = (data) => {
    return axios.request({
      baseURL: baseURL,
      url: "/user/menu",
      data: data,
      method: 'post'
    })
}

export const editMenu = (data) => {
    return axios.request({
      baseURL: baseURL,
      url: "/user/menu",
      data: data,
      method: 'post'
    })
}

//删除菜单
export const delMenu = (data) => {
    return axios.request({
      baseURL: baseURL,
      url: "/user/menu",
      params: data,
      method: 'delete'
    })
}

